package com.example.club.clubmanage;

/**
 * Created by Caolibao on 2015/9/15.
 * 常量数据类
 */
public class Constant {
    public enum Type {
        Login,
    }

    /**
     * 是否为开发模式，如果是生产模式的话就不打log
     */
    public static final boolean isDebugMode = true;
    private static String MQTT_UserName = "admin";
    private static String MQTT_PassWord = "password";
    private static String MQTT_topic = "topic";
    private static String clientId = "test";
    // bugly
    public static String BUGLY_APPID = "e068af9ad2";

    /**
     * 本地数据库常量
     */
    public static final class DBConfig {
        public static final int VERSION = 1;
        public static final String DB_NAME = "club_db";
    }




    /**
     * SharedPreferences相关常量
     */
    public static final class SharedPreferences {
        // 全局字段
        public static String GLOBAL_SP = "club";
        public static String USER_INFO = "userInfo";

        // token
        public static String TOKEN = "token";
        // userId
        public static String USER_ID = "userId";
        public static String USER_NAME = "userName";
        public static String USER_PWD = "userPassword";

    }




    /**
     * 请求后台的所有API接口都在这里配置;统一管理
     */
    public static final class Gateway {

        /**
         * 服务器地址
         */

        public static String server = ""; // 线上
        /**
         * MQTT服务器地址
         */
        public static String MQTT_Host = "tcp://192.168.10.100:61613";

    }
}
